// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '客户信息',
        name: 'CustomerInformation',
        url: "/CustomerInformation/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"CustomerInformationNumber":"","CustomerInformationName":"","CustomerInformationCompanyaddress":"","CustomerInformationContact":"","CustomerInformationMobilenumber":"","CustomerInformationNote":""};
    const editFormOptions = [[{"title":"客户编号","field":"CustomerInformationNumber","type":"text"},
                               {"title":"客户公司名称","field":"CustomerInformationName","type":"text"},
                               {"title":"公司地址","field":"CustomerInformationCompanyaddress","type":"text"}],
                              [{"title":"联系人","field":"CustomerInformationContact","type":"text"},
                               {"title":"手机号","field":"CustomerInformationMobilenumber","type":"text"},
                               {"title":"备注","field":"CustomerInformationNote","type":"text"}]];
    const searchFormFields = {"CustomerInformationNumber":"","CustomerInformationName":"","CustomerInformationCompanyaddress":"","CustomerInformationContact":"","CustomerInformationMobilenumber":"","CustomerInformationNote":""};
    const searchFormOptions = [[{"title":"客户编号","field":"CustomerInformationNumber","type":"like"},{"title":"客户公司名称","field":"CustomerInformationName","type":"like"},{"title":"公司地址","field":"CustomerInformationCompanyaddress","type":"like"}],[{"title":"联系人","field":"CustomerInformationContact","type":"like"},{"title":"手机号","field":"CustomerInformationMobilenumber","type":"like"},{"title":"备注","field":"CustomerInformationNote","type":"like"}]];
    const columns = [{field:'Id',title:'主键自增',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'CustomerInformationNumber',title:'客户编号',type:'string',link:true,width:220,align:'left',sort:true},
                       {field:'CustomerInformationName',title:'客户公司名称',type:'string',width:220,align:'left'},
                       {field:'CustomerInformationCompanyaddress',title:'公司地址',type:'string',width:220,align:'left'},
                       {field:'CustomerInformationContact',title:'联系人',type:'string',width:220,align:'left'},
                       {field:'CustomerInformationMobilenumber',title:'手机号',type:'string',width:220,align:'left'},
                       {field:'CustomerInformationNote',title:'备注',type:'string',width:220,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}